package com.yunfeisoft.business.model;

import com.applet.base.ServiceModel;
import com.applet.sql.record.TransientField;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.List;

/**
 * ClassName: CmsSubject
 * Description: 专题表
 *
 * @Author: Jackie liu
 * Date: 2020-06-02
 */
@Entity
@Table(name = "CMS_SUBJECT")
public class CmsSubject extends ServiceModel implements Serializable {

    /**
     * Field serialVersionUID: 序列号
     */
    private static final long serialVersionUID = 1L;

    /**
     * 分类id
     */
    @Column
    private String categoryId;

    /**
     * 标题
     */
    @Column
    private String title;

    /**
     * 专题主图
     */
    @Column
    private String pic;

    /**
     * 关联产品数量
     */
    @Column
    private Integer productCount;

    /**
     * 推荐状态
     */
    @Column
    private Integer recommendStatus;

    /**
     * 收藏数量
     */
    @Column
    private Integer collectCount;

    /**
     * 阅读数量
     */
    @Column
    private Integer readCount;

    /**
     * 评论数量
     */
    @Column
    private Integer commentCount;

    /**
     * 描述
     */
    @Column
    private String description;

    /**
     * 显示状态：0->不显示；1->显示
     */
    @Column
    private Integer showStatus;

    /**
     * 转发数
     */
    @Column
    private Integer forwardCount;

    @TransientField
    private String categoryName;

    private List<CmsSubjectProductRelation> subjectProductList;

    public String getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(String categoryId) {
        this.categoryId = categoryId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public Integer getProductCount() {
        return productCount;
    }

    public void setProductCount(Integer productCount) {
        this.productCount = productCount;
    }

    public Integer getRecommendStatus() {
        return recommendStatus;
    }

    public void setRecommendStatus(Integer recommendStatus) {
        this.recommendStatus = recommendStatus;
    }

    public Integer getCollectCount() {
        return collectCount;
    }

    public void setCollectCount(Integer collectCount) {
        this.collectCount = collectCount;
    }

    public Integer getReadCount() {
        return readCount;
    }

    public void setReadCount(Integer readCount) {
        this.readCount = readCount;
    }

    public Integer getCommentCount() {
        return commentCount;
    }

    public void setCommentCount(Integer commentCount) {
        this.commentCount = commentCount;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getShowStatus() {
        return showStatus;
    }

    public void setShowStatus(Integer showStatus) {
        this.showStatus = showStatus;
    }

    public Integer getForwardCount() {
        return forwardCount;
    }

    public void setForwardCount(Integer forwardCount) {
        this.forwardCount = forwardCount;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public List<CmsSubjectProductRelation> getSubjectProductList() {
        return subjectProductList;
    }

    public void setSubjectProductList(List<CmsSubjectProductRelation> subjectProductList) {
        this.subjectProductList = subjectProductList;
    }
}